package com.xxx.video.login.beans;

import android.os.Parcel;
import android.os.Parcelable;

public class RegisterBundleInfoBean implements Parcelable {
    public String userName;
    public String pwd;
    public String email;
    public String phone;
    public String nickName;

    private RegisterBundleInfoBean(Builder builder) {
        userName = builder.userName;
        pwd = builder.pwd;
        email = builder.email;
        phone = builder.phone;
        nickName = builder.nickName;
    }

    public static final class Builder {
        private String userName;
        private String pwd;
        private String email;
        private String phone;
        private String nickName;

        public Builder() {
        }

        public Builder userName(String val) {
            userName = val;
            return this;
        }

        public Builder pwd(String val) {
            pwd = val;
            return this;
        }

        public Builder email(String val) {
            email = val;
            return this;
        }

        public Builder phone(String val) {
            phone = val;
            return this;
        }

        public Builder nickName(String val) {
            nickName = val;
            return this;
        }

        public RegisterBundleInfoBean build() {
            return new RegisterBundleInfoBean(this);
        }
    }

    @Override
    public int describeContents() {
        return 0;
    }

    @Override
    public void writeToParcel(Parcel dest, int flags) {
        dest.writeString(this.userName);
        dest.writeString(this.pwd);
        dest.writeString(this.email);
        dest.writeString(this.phone);
        dest.writeString(this.nickName);
    }

    protected RegisterBundleInfoBean(Parcel in) {
        this.userName = in.readString();
        this.pwd = in.readString();
        this.email = in.readString();
        this.phone = in.readString();
        this.nickName = in.readString();
    }

    public static final Creator<RegisterBundleInfoBean> CREATOR = new Creator<RegisterBundleInfoBean>() {
        @Override
        public RegisterBundleInfoBean createFromParcel(Parcel source) {
            return new RegisterBundleInfoBean(source);
        }

        @Override
        public RegisterBundleInfoBean[] newArray(int size) {
            return new RegisterBundleInfoBean[size];
        }
    };
}
